<?php
echo '<div class="news">';
foreach ($news as $news_item): ?>

    <a href="news/<?php echo $news_item['slug']; ?>"><?php echo '<h2>'.$news_item['title'].'</h2>'; ?></a>
    <br />Author : <?php echo $news_item['author']; ?>
    
    <div id="main">
        <?php echo $news_item['article'] ?>
    </div>


<?php endforeach ?>
</div> <!--content-->
<!--    <p><a href="news/
    <?php //echo $news_item['slug'] ?>">View article</a></p>-->